php tip not to use count in for iteration

Dont use count() in loops because each iteration will count the number of elements; make a variable $count = count($array) and use the variable instead

Leave a Reply